package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class StoreInfoBean implements Serializable, IJsonParser{

	/**
	 *  "headers": {
        "version": 2
    },
    "need_receive": false,
    "store": {
        "province": "北京市",
        "store_id": 3,
        "district": "海淀区",
        "business_scope": "门店经营范围",
        "store_name": "门店3号店",
        "phone": "门店电话",
        "city": "北京市",
        "file": {
            "file_url": "http://imgs.ykdllmyr.com/storecards/2014/10/28/9sfWW6VmR9SHjwtNcJbju4.jpeg",
            "file_id": 6465464
        },
        "address": "门店地址",
        "coordinate": {
            "coordinate_y": 0.2,
            "coordinate_x": 0.2
        },
        "member_right": "会员权利\n 1.test1\n 2.test2\n 3.abcdefg"
    }
	 */
	private static final long serialVersionUID = 1L;
	private String province;
	private String store_id;
	private String district;
	private String business_scope;
	private String store_name;
	private String phone;
	private String city;
	private FileBean file;
	private String address;
	private String member_right;
	private String card_name;
	private String card_id;
	private String actor_id;
	private String created_time;
	private String name;
		private int status;//不等于2 门店就是下架状态
	public int getStatus() {
		return status;
	}
	public String getName() {
		return name;
	}

	public String getCard_id() {
		return card_id;
	}

	public String getActor_id() {
		return actor_id;
	}

	public String getCreated_time() {
		return created_time;
	}

	public String getCard_name() {
		return card_name;
	}

	public String getProvince() {
		return province;
	}

	public String getStore_id() {
		return store_id;
	}

	public String getDistrict() {
		return district;
	}

	public String getBusiness_scope() {
		return business_scope;
	}

	public String getStore_name() {
		return store_name;
	}

	public String getPhone() {
		return phone;
	}

	public String getCity() {
		return city;
	}

	public FileBean getFile() {
		return file;
	}

	public String getAddress() {
		return address;
	}

	public String getMember_right() {
		return member_right;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, StoreInfoBean.class);
		}
		return null;
	}

}
